package com.woniuxy.util;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ResponseEnum {
    OK(200, "success"), FAIL(500, "fail"),
    LOGIN_ERROR(2001, "用户名或者密码错误"),
    NO_LOGIN(2002, "未登录"),
    SYS_BUSY(2003, "系统繁忙"),
    NO_PERMISSION(2004,"无权限许可"),
    ALREADY_LOGGED_IN(2005,"用户已登录"),
    JWT_TIMEOUT(2006,"缓存无该jwt"),
    NOT_FILE(2007,"文件解析错误"),
    ERROR_PASSWORD(2008,"密码修改失败"),
    COMBINED_ORDER_ERROR1(2009,"客户不同"),
    COMBINED_ORDER_ERROR2(2010,"已关联运单"),
    COMBINED_ORDER_ERROR3 (2011,"始发地不同"),
    COMBINED_ORDER_ERROR4(2012,"目的地不同"),
    SPLIT_ORDER_ERROR1(2013,"仅有一件商品"),
    SPLIT_ORDER_ERROR2(2014,"已关联运单"),
    ORDER_ERROR(2015,"该订单未选择商品"),

    ;
    private Integer code;
    private String msg;//描述code码值

}
